//
//  Courier.m
//  express
//
//  Created by dd on 12/17/14.
//  Copyright (c) 2014 yunqi. All rights reserved.
//

#import "Courier.h"
#import "DXKit.h"

@implementation Courier

- (NSString *)name
{
    return [self stringForKey:@"name"];
}

- (NSString *)orgName
{
    return ![DX isNull: _data[@"org"]] ? (![DX isNull: _data[@"org"][@"name"]] ? _data[@"org"][@"name"] : @"") : @"";
}

- (NSString *)rootOrgName
{
    return ![DX isNull: _data[@"org"]] ? (![DX isNull: _data[@"org"][@"root_org_name"]] ? _data[@"org"][@"root_org_name"] : @"") : @"";
}

- (NSString *)orgId
{
    return [self stringForKey:@"org_id"];
}

- (NSString *)phone
{
    return [self stringForKey:@"phone"];
}

- (NSString *)avatar;
{
    return [self stringForKey:@"avatar"];
}

- (NSString *)rate;
{
    return [self stringForKey:@"rate"];
}

- (NSString *)waybillCount;
{
    return [self stringForKey:@"waybill_count"];
}

- (NSString *)attitude
{
    return [self stringForKey:@"attitude"];
}

- (NSString *)speed
{
    return [self stringForKey:@"speed"];
}

- (NSString *)status
{
    return [self stringForKey:@"status"];
}

- (NSString *)latitude
{
    return [self stringForKey:@"latitude"];
}

- (NSString *)longitude
{
    return [self stringForKey:@"longitude"];
}

- (NSArray *)rateList
{
    return _data[@"rate_list"];
}

- (NSString *)rateCount;
{
    return [self stringForKey:@"rateCount"];
}

@end
